package com.lanyun.auth.convert.authUser;

import com.lanyun.auth.basic.entity.AuthUser;
import com.lanyun.auth.basic.po.AuthUserPO;
import com.lanyun.auth.controller.admin.authUser.vo.AuthUserLoginResponseVO;
import com.lanyun.auth.controller.admin.authUser.vo.AuthUserPageVO;
import com.lanyun.auth.controller.admin.authUser.vo.AuthUserRequestVO;
import com.lanyun.auth.controller.admin.authUser.vo.AuthUserResponseVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @Author Jqcc
 * @Version 1.0
 * @Data 2025/3/11
 */
@Mapper
public interface AuthUserConvert {

    AuthUserConvert INSTANCE = Mappers.getMapper(AuthUserConvert.class);

    AuthUserLoginResponseVO convert(AuthUser authUser);

    AuthUser convert(AuthUserPageVO authUserPageVO);

    AuthUser convert(AuthUserRequestVO authUserRequestVO);

    List<AuthUserResponseVO> convert(List<AuthUser> authUserList);

    AuthUserResponseVO convertToResponseVO(AuthUserPO authUserPO);

    AuthUserPO convertToPO(AuthUser authUser);
}
